from django.urls import path, re_path
from Apps.Demo.views.new_view import Base_View, demo_view, api_view, re_api_view, ser_api_view, celery_view, \
    get_result_by_taskid, send_sk_msg_view

urlpatterns = [
    # Django基础视图
    path('demo_base/', demo_view),
    #
    path('base/', Base_View.as_view({"get": "list", "post": "create"})),

    path('api_view/', api_view.as_view()),

    path('ser_api_view/', ser_api_view.as_view()),

    path('re_api_view/', re_api_view.as_view()),

    path('celery_view/', celery_view.as_view()),

    re_path('celery_result/', get_result_by_taskid),

    path('send_sk_msg/', send_sk_msg_view.as_view())

]
